import PostcssImport from 'postcss-import'
import Autoprefixer from 'autoprefixer'
// import PxToViewport from 'postcss-px-to-viewport-8-plugin'
export default () => {
  return {
    postcss: {
      plugins: [
        PostcssImport,
        Autoprefixer,
        // PxToViewport({
        //   viewportWidth: 375,
        //   unitToConvert: 'px',
        //   exclude: [/node_modules/],
        // }),
      ],
    },
    preprocessorOptions: {
      scss: {
        additionalData: "@import '@/styles/index.scss';",
      },
    },
  }
}
